<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8">
    <title>中国老虎</title>
    <!-- Le styles -->
	<link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://cdnjs.bootcss.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
    <![endif]-->
  </head>
  <body style="margin: 0px ;padding-left:7px;padding-right:7px;background-color:#f5f5f5;">

	
<?php
		include "../php/inc/public_header.php";
		//$path="/img1/uploads/shop/productImg/";
		
		$path="http://www.chinalaohu.com/modules/miniature.php?w=500&p=/uploads/shop/productImg/";
		$product_id			= $_REQUEST["product_id"];
		if ($product_id!='247'){
		$img_sql="select * from shop_product_image where  product_id='".$product_id."' order by sort_order asc limit 7";
		$db1->query($img_sql);
		$pic=array();
		while($db1->next_record()){
			$pic[]=array(
				"pic"=>$db1->f("image")
			);
			//echo $path.$db1->f("image");
			echo "
                
		    
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='".$path.$db1->f("image")."' /></p>
           
				
				
			
              ";
		}
		}else{
			echo "
                
		    
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/1.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/2.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/3.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/4.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/5.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/6.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/7.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/8.jpg' /></p>
				<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><img src='http://www.chinalaohu.com/images/shop/dqt/9.jpg' /></p>
           
				
				
			
              ";
		}
		
		//$pic=$db2->queryArray("select*from `shop_product_image` where  product_id='250' order by sort_order asc limit 6");
		//echo json_encode($pic);
		/***echo "<ul>
                
		    <{section name=key  loop=$pic }>
				<li ><img src='"$path.$pic[1]"' /></li>
            <{/section}>
				
				
			
              </ul>";
		
		
		
		
		//商品的图片路径

		$pic=$db2->queryArray("select*from `shop_product_image` where  product_id='{$ids}' order by sort_order asc limit 6");
		echo "<{section name=key  loop=$pic }>
				<li ><img src='<{$path}><{$pic[key].image}>' /></li>
            <{/section}>";
		*/
		

		$sql="SELECT description from shop_product WHERE product_id='".$product_id."'";
		$db->query($sql);
		//echo "1";
		$db->next_record();
		$description = $db->f("description");
		$description=nl2br($description);
		if(!$description){
			echo "<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><span style='font-weight: bold;font-size:18px;'>详情介绍：</span ><br/>暂无介绍</p>";
		}else{
			echo "<p style='margin-right:0px;margin-bottom:10px;margin-top:0px;margin-left:0px;'><span style='font-weight: bold;font-size:18px;'>详情介绍：</span ><br/>".$description."</p>";
		}
		
	?>


  </body>
</html>